<?php

class Helper_Nav
{
    public $view;
    
    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }

    function nav()
    {
        if (Zend_Registry::get('config')->site->drop_down_menu)
        {
            return $this->view->navigation()->menu();
        } else
        {
            return $this->view->navigation()->menu()->renderMenu(null,array('maxDepth'=>0));
        }
    }
}
